FROM openjdk:21
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# 拷贝jar包
COPY springboot-test.jar /app.jar
# 运行
ENTRYPOINT ["java", "-jar", "/app.jar"]

